class Message:
    def __init__(self, role, content):
        self.role = role
        self.content = content

    def __repr__(self):
        return f"<Message(role='{self.role}')>"

    def to_dict(self):
        return {
            "role": self.role,
            "content": self.content
        }